import React from "react";
import { connect } from 'react-redux'
class VoteMain extends React.Component {
    render() {
        let { supNum, oppNum } = this.props
        return <div className="main">
            <p>支持人数:{supNum}</p>
            <p>反对人数:{oppNum}</p>
        </div>
    }
}
export default connect(state => {
    return {
        supNum: state.vote.supNum,
        oppNum: state.vote.oppNum
    }
})(VoteMain)
